import request from '@/utils/request'

// 查询题库答题记录列表
export function listQbmsRecordAnswer(query) {
  return request({
    url: '/qbms/qbmsRecordAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询题库答题记录详细
export function getQbmsRecordAnswer(id) {
  return request({
    url: '/qbms/qbmsRecordAnswer/' + id,
    method: 'get'
  })
}

// 新增题库答题记录
export function addQbmsRecordAnswer(data) {
  return request({
    url: '/qbms/qbmsRecordAnswer',
    method: 'post',
    data: data
  })
}

// 修改题库答题记录
export function updateQbmsRecordAnswer(data) {
  return request({
    url: '/qbms/qbmsRecordAnswer',
    method: 'put',
    data: data
  })
}

// 删除题库答题记录
export function delQbmsRecordAnswer(id) {
  return request({
    url: '/qbms/qbmsRecordAnswer/' + id,
    method: 'delete'
  })
}
